package com.googlecode.ilstreets.persistent;

import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.IdGeneratorStrategy;

@PersistenceCapable
public class City {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    
    @Persistent
    private String name;
    
    public City(String name)
    {
    	this.name = name;
    }
    
    public Key getKey()
    {
    	return key;
    }
    
    public String getName()
    {
    	return name;
    }
}
